FROM nginx:latest
MAINTAINER sukaiyi

ENV TZ=Asia/Shanghai
ENV RUN_USER nginx
ENV RUN_GROUP nginx
ENV DATA_DIR /var/www/html

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /var/www/html

COPY build/ /var/www/html
COPY deploy-docker/nginx.conf /etc/nginx/conf.d/server.conf

ENV profile=dev

CMD ["nginx", "-g", "daemon off;"]
